home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 4 / Amiga Tools 4.iso / tools / netzwerk / tcp-ip / usno / sh / time_set
Encoding:
Text File  |  1996-02-26  |  562 b   |  22 lines

  1. #!/bin/ksh
  2. #  Kill cron, reset the system clock, and restart cron
  3. ##################################################################
  4. #
  5. set -- `ps -e | grep cron` && PID=$1
  6. /bin/kill -9  $PID
  7. #
  8. #  Use this sequence on SunOS 4.x:
  9. # /bin/kill -9  `ps -ax | grep cron | grep -v grep | cut -c 1-5 `
  10. #
  11. date >> time_set.log
  12. #
  13. #  Replace "tycho" with the host name of your local area time server:
  14. /usr/local/bin/time_set tycho >> time_set.log
  15. #
  16. date>>time_set.log
  17. #
  18. echo " " >> time_set.log
  19. #
  20. /etc/cron
  21. ##################################################################
  22.